<?php
include "../../mainfile.php";

switch ($_GET['op']) {
 case"create_ok":
 	$itemhandler = & xoops_getmodulehandler("item");
	$item_awaitH = & xoops_getmodulehandler("item_await");
	$item_await = $item_awaitH->create();
 	$item_await->setFormVars($_POST,"item_");
	$item_awaitH->insert($item_await);	
	redirect_header("submit.php",1);	
	exit;
}

include_once XOOPS_ROOT_PATH."/header.php";
$xoopsTpl->display("db:neoobject_user_item_create.html");
include_once XOOPS_ROOT_PATH."/footer.php";
?>